import {Poptip,CheckboxGroup,Checkbox} from 'iview'
import Input from './components/input';
import Upload from './components/upload';
import Tree from './components/tree';
const components = {
    CInput:Input,
    cTree:Tree,
    iPoptip:Poptip,
    iCheckboxGroup:CheckboxGroup,
    iCheckbox:Checkbox,
    // Upload,
};

const iview = {
    ...components,
};

export default {
    install: function(Vue){
        Object.keys(iview).forEach(key => {
            Vue.component(key, iview[key]);
        });
    }
}